package com.eqdd.yiqidian.gen;

import java.util.Map;

import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.AbstractDaoSession;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;

import com.eqdd.yiqidian.bean.PushMsg;
import com.eqdd.yiqidian.bean.User;
import com.eqdd.yiqidian.bean.rongyun.GroupBean;
import com.eqdd.yiqidian.bean.rebuild.GroupListResultBean;
import com.eqdd.yiqidian.bean.rebuild.CompanyInfoResultBean;
import com.eqdd.yiqidian.bean.rebuild.YueArticleBean;
import com.eqdd.yiqidian.bean.rebuild.FriendListResultBean;

import com.eqdd.yiqidian.gen.PushMsgDao;
import com.eqdd.yiqidian.gen.UserDao;
import com.eqdd.yiqidian.gen.GroupBeanDao;
import com.eqdd.yiqidian.gen.GroupListResultBeanDao;
import com.eqdd.yiqidian.gen.CompanyInfoResultBeanDao;
import com.eqdd.yiqidian.gen.YueArticleBeanDao;
import com.eqdd.yiqidian.gen.FriendListResultBeanDao;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.

/**
 * {@inheritDoc}
 * 
 * @see org.greenrobot.greendao.AbstractDaoSession
 */
public class DaoSession extends AbstractDaoSession {

    private final DaoConfig pushMsgDaoConfig;
    private final DaoConfig userDaoConfig;
    private final DaoConfig groupBeanDaoConfig;
    private final DaoConfig groupListResultBeanDaoConfig;
    private final DaoConfig companyInfoResultBeanDaoConfig;
    private final DaoConfig yueArticleBeanDaoConfig;
    private final DaoConfig friendListResultBeanDaoConfig;

    private final PushMsgDao pushMsgDao;
    private final UserDao userDao;
    private final GroupBeanDao groupBeanDao;
    private final GroupListResultBeanDao groupListResultBeanDao;
    private final CompanyInfoResultBeanDao companyInfoResultBeanDao;
    private final YueArticleBeanDao yueArticleBeanDao;
    private final FriendListResultBeanDao friendListResultBeanDao;

    public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
            daoConfigMap) {
        super(db);

        pushMsgDaoConfig = daoConfigMap.get(PushMsgDao.class).clone();
        pushMsgDaoConfig.initIdentityScope(type);

        userDaoConfig = daoConfigMap.get(UserDao.class).clone();
        userDaoConfig.initIdentityScope(type);

        groupBeanDaoConfig = daoConfigMap.get(GroupBeanDao.class).clone();
        groupBeanDaoConfig.initIdentityScope(type);

        groupListResultBeanDaoConfig = daoConfigMap.get(GroupListResultBeanDao.class).clone();
        groupListResultBeanDaoConfig.initIdentityScope(type);

        companyInfoResultBeanDaoConfig = daoConfigMap.get(CompanyInfoResultBeanDao.class).clone();
        companyInfoResultBeanDaoConfig.initIdentityScope(type);

        yueArticleBeanDaoConfig = daoConfigMap.get(YueArticleBeanDao.class).clone();
        yueArticleBeanDaoConfig.initIdentityScope(type);

        friendListResultBeanDaoConfig = daoConfigMap.get(FriendListResultBeanDao.class).clone();
        friendListResultBeanDaoConfig.initIdentityScope(type);

        pushMsgDao = new PushMsgDao(pushMsgDaoConfig, this);
        userDao = new UserDao(userDaoConfig, this);
        groupBeanDao = new GroupBeanDao(groupBeanDaoConfig, this);
        groupListResultBeanDao = new GroupListResultBeanDao(groupListResultBeanDaoConfig, this);
        companyInfoResultBeanDao = new CompanyInfoResultBeanDao(companyInfoResultBeanDaoConfig, this);
        yueArticleBeanDao = new YueArticleBeanDao(yueArticleBeanDaoConfig, this);
        friendListResultBeanDao = new FriendListResultBeanDao(friendListResultBeanDaoConfig, this);

        registerDao(PushMsg.class, pushMsgDao);
        registerDao(User.class, userDao);
        registerDao(GroupBean.class, groupBeanDao);
        registerDao(GroupListResultBean.class, groupListResultBeanDao);
        registerDao(CompanyInfoResultBean.class, companyInfoResultBeanDao);
        registerDao(YueArticleBean.class, yueArticleBeanDao);
        registerDao(FriendListResultBean.class, friendListResultBeanDao);
    }
    
    public void clear() {
        pushMsgDaoConfig.clearIdentityScope();
        userDaoConfig.clearIdentityScope();
        groupBeanDaoConfig.clearIdentityScope();
        groupListResultBeanDaoConfig.clearIdentityScope();
        companyInfoResultBeanDaoConfig.clearIdentityScope();
        yueArticleBeanDaoConfig.clearIdentityScope();
        friendListResultBeanDaoConfig.clearIdentityScope();
    }

    public PushMsgDao getPushMsgDao() {
        return pushMsgDao;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public GroupBeanDao getGroupBeanDao() {
        return groupBeanDao;
    }

    public GroupListResultBeanDao getGroupListResultBeanDao() {
        return groupListResultBeanDao;
    }

    public CompanyInfoResultBeanDao getCompanyInfoResultBeanDao() {
        return companyInfoResultBeanDao;
    }

    public YueArticleBeanDao getYueArticleBeanDao() {
        return yueArticleBeanDao;
    }

    public FriendListResultBeanDao getFriendListResultBeanDao() {
        return friendListResultBeanDao;
    }

}
